package qiyeku.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import qiyeku.orm.dao.CompanyPoolMapper;
import qiyeku.orm.entity.CompanyPool;

import java.util.List;

/**
 * 功能:
 * 作者: 洪世成
 * 日期: 2017/10/28
 * 版权所有: admin
 */
@Service
public class CompanyPoolServicesImp implements  CompanyPoolServices  {
    @Autowired
    CompanyPoolMapper companyPoolMapper;
    public CompanyPool selectByCode(String code) {
        return companyPoolMapper.selectByCode(code);
    }

    public List<CompanyPool> selectByCodeLike(String code) {
        return companyPoolMapper.selectByCodeLike(code);
    }

    public CompanyPool selectByName(String name) {
        return companyPoolMapper.selectByName(name);
    }

    public List<CompanyPool> selectByNameLike(String name) {
        return companyPoolMapper.selectByNameLike(name);
    }
}
